//
//  NSObject+YCTools.h
//  YCCategory
//
//  Created by Apple on 2022/11/1.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSObject (YCTools)

/// 返回名字
+ (NSString *)name;

/// 计算文件大小
/// @param fileData fileData description
- (void)calculatorFilesizeWith:(NSData *)fileData;


/// 是否为空
- (BOOL)isEmpty;
+ (BOOL)isEmpty:(id)obj;

/// 验证json合法性
- (BOOL)isValidJSON;
+ (BOOL)isValidJSON:(id)obj;

/// 模型转字典
- (NSMutableDictionary *)yc_dictionayFromModel;

@end

NS_ASSUME_NONNULL_END
